package com.xxgc.ssm.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ReceivingAddressExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ReceivingAddressExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRaIdIsNull() {
            addCriterion("ra_id is null");
            return (Criteria) this;
        }

        public Criteria andRaIdIsNotNull() {
            addCriterion("ra_id is not null");
            return (Criteria) this;
        }

        public Criteria andRaIdEqualTo(Long value) {
            addCriterion("ra_id =", value, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdNotEqualTo(Long value) {
            addCriterion("ra_id <>", value, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdGreaterThan(Long value) {
            addCriterion("ra_id >", value, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ra_id >=", value, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdLessThan(Long value) {
            addCriterion("ra_id <", value, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdLessThanOrEqualTo(Long value) {
            addCriterion("ra_id <=", value, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdIn(List<Long> values) {
            addCriterion("ra_id in", values, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdNotIn(List<Long> values) {
            addCriterion("ra_id not in", values, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdBetween(Long value1, Long value2) {
            addCriterion("ra_id between", value1, value2, "raId");
            return (Criteria) this;
        }

        public Criteria andRaIdNotBetween(Long value1, Long value2) {
            addCriterion("ra_id not between", value1, value2, "raId");
            return (Criteria) this;
        }

        public Criteria andRaAddressIsNull() {
            addCriterion("ra_address is null");
            return (Criteria) this;
        }

        public Criteria andRaAddressIsNotNull() {
            addCriterion("ra_address is not null");
            return (Criteria) this;
        }

        public Criteria andRaAddressEqualTo(String value) {
            addCriterion("ra_address =", value, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressNotEqualTo(String value) {
            addCriterion("ra_address <>", value, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressGreaterThan(String value) {
            addCriterion("ra_address >", value, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressGreaterThanOrEqualTo(String value) {
            addCriterion("ra_address >=", value, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressLessThan(String value) {
            addCriterion("ra_address <", value, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressLessThanOrEqualTo(String value) {
            addCriterion("ra_address <=", value, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressLike(String value) {
            addCriterion("ra_address like", value, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressNotLike(String value) {
            addCriterion("ra_address not like", value, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressIn(List<String> values) {
            addCriterion("ra_address in", values, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressNotIn(List<String> values) {
            addCriterion("ra_address not in", values, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressBetween(String value1, String value2) {
            addCriterion("ra_address between", value1, value2, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaAddressNotBetween(String value1, String value2) {
            addCriterion("ra_address not between", value1, value2, "raAddress");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeIsNull() {
            addCriterion("ra_longitude is null");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeIsNotNull() {
            addCriterion("ra_longitude is not null");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeEqualTo(Double value) {
            addCriterion("ra_longitude =", value, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeNotEqualTo(Double value) {
            addCriterion("ra_longitude <>", value, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeGreaterThan(Double value) {
            addCriterion("ra_longitude >", value, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("ra_longitude >=", value, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeLessThan(Double value) {
            addCriterion("ra_longitude <", value, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeLessThanOrEqualTo(Double value) {
            addCriterion("ra_longitude <=", value, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeIn(List<Double> values) {
            addCriterion("ra_longitude in", values, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeNotIn(List<Double> values) {
            addCriterion("ra_longitude not in", values, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeBetween(Double value1, Double value2) {
            addCriterion("ra_longitude between", value1, value2, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLongitudeNotBetween(Double value1, Double value2) {
            addCriterion("ra_longitude not between", value1, value2, "raLongitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeIsNull() {
            addCriterion("ra_latitude is null");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeIsNotNull() {
            addCriterion("ra_latitude is not null");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeEqualTo(Double value) {
            addCriterion("ra_latitude =", value, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeNotEqualTo(Double value) {
            addCriterion("ra_latitude <>", value, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeGreaterThan(Double value) {
            addCriterion("ra_latitude >", value, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("ra_latitude >=", value, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeLessThan(Double value) {
            addCriterion("ra_latitude <", value, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeLessThanOrEqualTo(Double value) {
            addCriterion("ra_latitude <=", value, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeIn(List<Double> values) {
            addCriterion("ra_latitude in", values, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeNotIn(List<Double> values) {
            addCriterion("ra_latitude not in", values, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeBetween(Double value1, Double value2) {
            addCriterion("ra_latitude between", value1, value2, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaLatitudeNotBetween(Double value1, Double value2) {
            addCriterion("ra_latitude not between", value1, value2, "raLatitude");
            return (Criteria) this;
        }

        public Criteria andRaDefaultIsNull() {
            addCriterion("ra_default is null");
            return (Criteria) this;
        }

        public Criteria andRaDefaultIsNotNull() {
            addCriterion("ra_default is not null");
            return (Criteria) this;
        }

        public Criteria andRaDefaultEqualTo(Boolean value) {
            addCriterion("ra_default =", value, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultNotEqualTo(Boolean value) {
            addCriterion("ra_default <>", value, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultGreaterThan(Boolean value) {
            addCriterion("ra_default >", value, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultGreaterThanOrEqualTo(Boolean value) {
            addCriterion("ra_default >=", value, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultLessThan(Boolean value) {
            addCriterion("ra_default <", value, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultLessThanOrEqualTo(Boolean value) {
            addCriterion("ra_default <=", value, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultIn(List<Boolean> values) {
            addCriterion("ra_default in", values, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultNotIn(List<Boolean> values) {
            addCriterion("ra_default not in", values, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultBetween(Boolean value1, Boolean value2) {
            addCriterion("ra_default between", value1, value2, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaDefaultNotBetween(Boolean value1, Boolean value2) {
            addCriterion("ra_default not between", value1, value2, "raDefault");
            return (Criteria) this;
        }

        public Criteria andRaUserIdIsNull() {
            addCriterion("ra_user_id is null");
            return (Criteria) this;
        }

        public Criteria andRaUserIdIsNotNull() {
            addCriterion("ra_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andRaUserIdEqualTo(Long value) {
            addCriterion("ra_user_id =", value, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdNotEqualTo(Long value) {
            addCriterion("ra_user_id <>", value, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdGreaterThan(Long value) {
            addCriterion("ra_user_id >", value, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ra_user_id >=", value, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdLessThan(Long value) {
            addCriterion("ra_user_id <", value, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdLessThanOrEqualTo(Long value) {
            addCriterion("ra_user_id <=", value, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdIn(List<Long> values) {
            addCriterion("ra_user_id in", values, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdNotIn(List<Long> values) {
            addCriterion("ra_user_id not in", values, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdBetween(Long value1, Long value2) {
            addCriterion("ra_user_id between", value1, value2, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaUserIdNotBetween(Long value1, Long value2) {
            addCriterion("ra_user_id not between", value1, value2, "raUserId");
            return (Criteria) this;
        }

        public Criteria andRaValidIsNull() {
            addCriterion("ra_valid is null");
            return (Criteria) this;
        }

        public Criteria andRaValidIsNotNull() {
            addCriterion("ra_valid is not null");
            return (Criteria) this;
        }

        public Criteria andRaValidEqualTo(String value) {
            addCriterion("ra_valid =", value, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidNotEqualTo(String value) {
            addCriterion("ra_valid <>", value, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidGreaterThan(String value) {
            addCriterion("ra_valid >", value, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidGreaterThanOrEqualTo(String value) {
            addCriterion("ra_valid >=", value, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidLessThan(String value) {
            addCriterion("ra_valid <", value, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidLessThanOrEqualTo(String value) {
            addCriterion("ra_valid <=", value, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidLike(String value) {
            addCriterion("ra_valid like", value, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidNotLike(String value) {
            addCriterion("ra_valid not like", value, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidIn(List<String> values) {
            addCriterion("ra_valid in", values, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidNotIn(List<String> values) {
            addCriterion("ra_valid not in", values, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidBetween(String value1, String value2) {
            addCriterion("ra_valid between", value1, value2, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaValidNotBetween(String value1, String value2) {
            addCriterion("ra_valid not between", value1, value2, "raValid");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeIsNull() {
            addCriterion("ra_create_time is null");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeIsNotNull() {
            addCriterion("ra_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeEqualTo(Date value) {
            addCriterion("ra_create_time =", value, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeNotEqualTo(Date value) {
            addCriterion("ra_create_time <>", value, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeGreaterThan(Date value) {
            addCriterion("ra_create_time >", value, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ra_create_time >=", value, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeLessThan(Date value) {
            addCriterion("ra_create_time <", value, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("ra_create_time <=", value, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeIn(List<Date> values) {
            addCriterion("ra_create_time in", values, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeNotIn(List<Date> values) {
            addCriterion("ra_create_time not in", values, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeBetween(Date value1, Date value2) {
            addCriterion("ra_create_time between", value1, value2, "raCreateTime");
            return (Criteria) this;
        }

        public Criteria andRaCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("ra_create_time not between", value1, value2, "raCreateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}